import request from '@/utils/request'
// 获取列表
export function GetListAPI(params) {
  return request({
    url: '/scheduling/condition/list',
    method: 'GET',
    params
  })
}
// 修改优先排序或开启关闭
export function SortAPI(data) {
  return request({
    url: '/scheduling/condition/sort',
    method: 'PUT',
    data
  })
}

// 查询配比信息
export function GetWeightListAPI(params) {
  return request({
    url: '/scheduling/condition/weightList',
    method: 'GET',
    params
  })
}

// 根据配比id查询详情
export function GetConditionAPI(data) {
  return request({
    url: '/scheduling/condition/' + data,
    method: 'GET'
  })
}

// 新增
export function AddDataAPI(data) {
  return request({
    url: '/scheduling/condition/add',
    method: 'POST',
    data
  })
}

// 修改
export function EditDataAPI(data) {
  return request({
    url: '/scheduling/condition/edit',
    method: 'PUT',
    data
  })
}

// 删除
export function DelDataAPI(data) {
  return request({
    url: '/scheduling/condition/' + data,
    method: 'DELETE'
  })
}
